package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by elvisxiong on 7/8/15.
 */
@Setter
@Getter
@NoArgsConstructor
@Table("invitation_code")
public class InvitationCode implements Serializable {

    //编号
    @Column(value = "id", type = ColumnType.Long)
    private Long id;
    //组织ID
    @Column(value = "org_id", type = ColumnType.Long)
    private Long orgId;
    //角色ID
    @Column(value = "role_id", type = ColumnType.Long)
    private Long roleId;
    //邀请码
    @Column
    private String code;
    //状态
    @Column(value = "status", type = ColumnType.Int)
    private Integer status;
    //有效期
    @Column(value = "expire_date", type = ColumnType.Long)
    private Long exprieDate;
}
